﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.Mvc;
using System.Collections.Specialized;
using Rainr.Utilities.Collections;
using Rainr.Utilities.Security;
using Rainr.Utilities.IO;
using Rainr.Utilities;
using Rainr.Utilities.Common;

namespace Web.Controllers
{
    public class HomeController : Controller
    {
        //
        // GET: /Home/

        //进入 Index.aspx
        public ActionResult Index()
        {
            //直接输出Index.aspx页面中的Html内容
            IDictionary<string, int> lc = new ListDictionary<string, int>();
            Random rm = new Random();
            lc.Add("1", rm.Next(1, 9));
            lc.Add("2", rm.Next(1, 9));
            lc.Add("2", rm.Next(1, 9));
            TempData["LC"] = lc;



            return View();
        }

        //Index.aspx页面中的Form的提交 action 路径
        public ActionResult Submit()
        {
            //直接将请求的Form 给Submit.aspx页面输出，用来测试Index.aspx 中的Form的值是否能得到
            TempData["nvc"] = Request.Form;
            return View();
        }

    }
}
